package com.dragon.modules.yuegou.query.park;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.park.PlateNoRetrieveEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;
/**
 * 车牌信息找回 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-03-13 14:02:05
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PlateNoRetrieveQuery extends PlateNoRetrieveEntity implements Query<PlateNoRetrieveEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 会员ID查询条件 */
	@JsonUnwrapped(prefix = "memberId")
	private Condition<String> memberIdCondition;

    /** 行驶证图片地址查询条件 */
	@JsonUnwrapped(prefix = "drivingLicenseImg")
	private Condition<String> drivingLicenseImgCondition;

    /** 车牌号查询条件 */
	@JsonUnwrapped(prefix = "plateNumber")
	private Condition<String> plateNumberCondition;

    /** 车架号查询条件 */
	@JsonUnwrapped(prefix = "carFrameNum")
	private Condition<String> carFrameNumCondition;

    /** 发动机号查询条件 */
	@JsonUnwrapped(prefix = "carEngineNum")
	private Condition<String> carEngineNumCondition;

    /** 车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件 */
	@JsonUnwrapped(prefix = "plateColor")
	private Condition<Integer> plateColorCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PlateNoRetrieveQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PlateNoRetrieveQuery(PlateNoRetrieveEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PlateNoRetrieveQuery(PlateNoRetrieveQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.memberIdCondition != null) {
			this.memberIdCondition = other.memberIdCondition.copy();
		}
		if(other.drivingLicenseImgCondition != null) {
			this.drivingLicenseImgCondition = other.drivingLicenseImgCondition.copy();
		}
		if(other.plateNumberCondition != null) {
			this.plateNumberCondition = other.plateNumberCondition.copy();
		}
		if(other.carFrameNumCondition != null) {
			this.carFrameNumCondition = other.carFrameNumCondition.copy();
		}
		if(other.carEngineNumCondition != null) {
			this.carEngineNumCondition = other.carEngineNumCondition.copy();
		}
		if(other.plateColorCondition != null) {
			this.plateColorCondition = other.plateColorCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PlateNoRetrieveEntity> toQueryWrapper() {
		QueryWrapper<PlateNoRetrieveEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (memberIdCondition != null) {
			memberIdCondition.toWrapper(wrapper, COL_MEMBER_ID);
		}
		if (drivingLicenseImgCondition != null) {
			drivingLicenseImgCondition.toWrapper(wrapper, COL_DRIVING_LICENSE_IMG);
		}
		if (plateNumberCondition != null) {
			plateNumberCondition.toWrapper(wrapper, COL_PLATE_NUMBER);
		}
		if (carFrameNumCondition != null) {
			carFrameNumCondition.toWrapper(wrapper, COL_CAR_FRAME_NUM);
		}
		if (carEngineNumCondition != null) {
			carEngineNumCondition.toWrapper(wrapper, COL_CAR_ENGINE_NUM);
		}
		if (plateColorCondition != null) {
			plateColorCondition.toWrapper(wrapper, COL_PLATE_COLOR);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> memberId() {
		this.memberIdCondition = new Condition<>();
		return this.memberIdCondition;
	}
	
	/**
	 * 获取会员ID查询条件
	 * 
	 * @return memberIdCondition 会员ID查询条件
	 */
	public Condition<String> getMemberIdCondition() {
		return memberIdCondition;
	}

	/**
	 * 设置会员ID查询条件
	 * 
	 * @param memberIdCondition 会员ID查询条件
	 */
	public void setMemberIdCondition(Condition<String> memberIdCondition) {
		this.memberIdCondition = memberIdCondition;
	}

	/**
	 * 构造并返回行驶证图片地址查询条件
	 * 
	 * @return drivingLicenseImgCondition 行驶证图片地址查询条件
	 */
	public Condition<String> drivingLicenseImg() {
		this.drivingLicenseImgCondition = new Condition<>();
		return this.drivingLicenseImgCondition;
	}
	
	/**
	 * 获取行驶证图片地址查询条件
	 * 
	 * @return drivingLicenseImgCondition 行驶证图片地址查询条件
	 */
	public Condition<String> getDrivingLicenseImgCondition() {
		return drivingLicenseImgCondition;
	}

	/**
	 * 设置行驶证图片地址查询条件
	 * 
	 * @param drivingLicenseImgCondition 行驶证图片地址查询条件
	 */
	public void setDrivingLicenseImgCondition(Condition<String> drivingLicenseImgCondition) {
		this.drivingLicenseImgCondition = drivingLicenseImgCondition;
	}

	/**
	 * 构造并返回车牌号查询条件
	 * 
	 * @return plateNumberCondition 车牌号查询条件
	 */
	public Condition<String> plateNumber() {
		this.plateNumberCondition = new Condition<>();
		return this.plateNumberCondition;
	}
	
	/**
	 * 获取车牌号查询条件
	 * 
	 * @return plateNumberCondition 车牌号查询条件
	 */
	public Condition<String> getPlateNumberCondition() {
		return plateNumberCondition;
	}

	/**
	 * 设置车牌号查询条件
	 * 
	 * @param plateNumberCondition 车牌号查询条件
	 */
	public void setPlateNumberCondition(Condition<String> plateNumberCondition) {
		this.plateNumberCondition = plateNumberCondition;
	}

	/**
	 * 构造并返回车架号查询条件
	 * 
	 * @return carFrameNumCondition 车架号查询条件
	 */
	public Condition<String> carFrameNum() {
		this.carFrameNumCondition = new Condition<>();
		return this.carFrameNumCondition;
	}
	
	/**
	 * 获取车架号查询条件
	 * 
	 * @return carFrameNumCondition 车架号查询条件
	 */
	public Condition<String> getCarFrameNumCondition() {
		return carFrameNumCondition;
	}

	/**
	 * 设置车架号查询条件
	 * 
	 * @param carFrameNumCondition 车架号查询条件
	 */
	public void setCarFrameNumCondition(Condition<String> carFrameNumCondition) {
		this.carFrameNumCondition = carFrameNumCondition;
	}

	/**
	 * 构造并返回发动机号查询条件
	 * 
	 * @return carEngineNumCondition 发动机号查询条件
	 */
	public Condition<String> carEngineNum() {
		this.carEngineNumCondition = new Condition<>();
		return this.carEngineNumCondition;
	}
	
	/**
	 * 获取发动机号查询条件
	 * 
	 * @return carEngineNumCondition 发动机号查询条件
	 */
	public Condition<String> getCarEngineNumCondition() {
		return carEngineNumCondition;
	}

	/**
	 * 设置发动机号查询条件
	 * 
	 * @param carEngineNumCondition 发动机号查询条件
	 */
	public void setCarEngineNumCondition(Condition<String> carEngineNumCondition) {
		this.carEngineNumCondition = carEngineNumCondition;
	}

	/**
	 * 构造并返回车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 * 
	 * @return plateColorCondition 车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 */
	public Condition<Integer> plateColor() {
		this.plateColorCondition = new Condition<>();
		return this.plateColorCondition;
	}
	
	/**
	 * 获取车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 * 
	 * @return plateColorCondition 车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 */
	public Condition<Integer> getPlateColorCondition() {
		return plateColorCondition;
	}

	/**
	 * 设置车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 * 
	 * @param plateColorCondition 车牌颜色(1 蓝 2 黑 3 黄 4 白)查询条件
	 */
	public void setPlateColorCondition(Condition<Integer> plateColorCondition) {
		this.plateColorCondition = plateColorCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

}
